<template>
    <router-view v-slot="{ Component, route }">
        <KeepAlive :include="cacheRoutes">
            <component :is="useFormatComponent(Component, route)" />
        </KeepAlive>
    </router-view>
</template>
<script setup>
import { useKeepAlive } from "@/hook/index"
const { useFormatComponent, cacheRoutes } = useKeepAlive()
</script>